How to find unit digit of any number